﻿using Luna小店.service;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Luna小店.生产工单
{
    public partial class Frm目录名称 : DevExpress.XtraEditors.XtraForm
    {
        public String PID { get; set; }//父id
        public Frm目录名称(String pid)
        {
            this.PID = pid;
            InitializeComponent();
        }

        private void simpleButton取消_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void simpleButton保存_Click(object sender, EventArgs e)
        {
            if(CADService.CreateFile("", this.textBoxName.Text, PID, "0","")==true)
            {
                MessageBox.Show("创建成功");
                this.Close();
            }
            else
            {
                MessageBox.Show("创建失败");
                this.Close();
            }
        }
    }
}
